Prevents Cross-Site Scripting (XSS) attacks by automatically escaping special characters in React JSX to treat user input as text rather than executable code.